/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * Author: zhnb
 * Date: 2011-7-26 上午09:01:25
 */
package com.number.bond;

import Ice.Object;
import Ice.ObjectFactory;

/**
 * 传值方式，必须实现一个自定义类工厂。
 * @author zhnb
 *
 */
public class ObjectFactory4Bond implements ObjectFactory {

    @Override
    public Object create(String type) {
        System.out.println("!!>type=" + type);
        if (type.equals(com.number.bond.BondI.ice_staticId())) {
            return new BondI();
        }
        return null;
    }

    @Override
    public void destroy() {
        // TODO Auto-generated method stub

    }

}
